package ecode

const (
	CN = "cn"
	EN = "en"
)

func init() {
	cms := map[int]map[string]string{
		ParamErr.Code(): {
			CN: "参数错误",
			EN: "param error",
		},
		ServerErr.Code(): {
			CN: "服务器内部错误",
			EN: "server internel error",
		},
		ErrInvitationBined.Code(): {
			CN: "已经绑定过注册码",
			EN: "Invitation Binding error",
		},
		ErrOrderNotFound.Code(): {
			CN: "订单不存在",
			EN: "Order Not Found",
		},
		ErrGoodsNotFound.Code(): {
			CN: "商品不存在",
			EN: "Goods Not Found",
		},
		ErrUserNotFund.Code(): {
			CN: "用户不存在",
			EN: "User Not Found",
		},
		ErrInvitationSelf.Code(): {
			CN: "邀请码不能绑定自己",
			EN: "The invitation code cannot be bound to itself.",
		},
		ErrTransaction.Code(): {
			CN: "交易失败",
			EN: "The transaction failed.",
		},
	}
	Register(cms)
}
